<?php
/**
 * QQAS - share your knowledge to the world!
 *
 * @author		xiaochong0302 <xiaochong0302@gmail.com>
 * @copyright	Copyright (c) 2011, Koogua Studio.
 * @license		http://www.qqas.org/user_guide/license.html
 * @link		http://www.qqas.org
 * @since		Version 1.0
 * @filesource
 */


class NetworkQuestionViewModel extends ViewModel
{

	public $viewFields = array(
	    'Question' => array('question_id','category_id','title','answer_count','star_count','reward_point','is_urgent','is_reward','create_time'),
		'UserFollow' => array('_on'=>'Question.poster_id=UserFollow.target_user'),
	    'User' => array('user_id','username','email','_on'=>'UserFollow.target_user=User.user_id'),

	);

}

/* End of file QuestionViewModel.class.php */
/* Location: ./App/Lib/Model/QuestionViewModel.class.php */